<?php 
$feedId = $this->getRequest()->getParam('id');
$collection = Mage::getModel("mapi/feedback")->load($feedId);
// $customer = Mage::getModel("customer/customer")->loadById($collection->getCustomerId());
// echo $customer->getUsername();
 ?>
<style type="text/css">
	.tables{
		border: 1px solid#ccc;
	    margin-top: 20px;
	    padding: 10px;}
</style>
<div class="content-header">
    <h3 class="icon-head head-sales-order-invoice">反馈详情</h3>
    <p class="form-buttons">
        <button id="id_7ecf0ab045f01f0c1081d8dc04dc0e57" title="返回" type="button" class="scalable back" onclick="javascript:history.back()" style="">
            <span><span><span>返回</span></span></span>
        </button>
    </p>
</div>

<div class="content-header">
	<div class="entry-edit">
	    <div class="entry-edit-head">
	        <h4 class="icon-head head-products">反馈详情</h4>
	    </div>
	</div>

	<table class="tables">
		<tr>
			<td>ID</td>
			<td><?php echo $collection->getId() ?></td>
		</tr>
		<tr>
			<td>用户ID</td>
			<td><?php echo $collection->getCustomerId() ?></td>
		</tr>
		<tr>
			<td>姓名</td>
			<td><?php echo $collection->getName() ?></td>
		</tr>
		<tr>
			<td>联系电话</td>
			<td><?php echo $collection->getMobile() ?></td>
		</tr>
		<tr>
			<td>查看次数</td>
			<td><?php echo $collection->getViewCount() ?></td>
		</tr>
		<tr>
			<td>反馈时间</td>
			<td><?php echo $collection->getCreatedAt() ?></td>
		</tr>
		<tr>
			<td>AppID</td>
			<td>
				<?php 
					if($collection->getAppid() == Mage_Api2_Model_Request::DEVICE_ANDROID_SHOP)
					{
						echo '商城Android';
					}elseif($collection->getAppid() == Mage_Api2_Model_Request::DEVICE_IOS_SHOP){
						echo '商城IOS';
					}elseif($collection->getAppid() == Mage_Api2_Model_Request::DEVICE_ANDROID_DELIVER)
					{
						echo '配送Android';
					}
				 ?>
			</td>
		</tr>
		<tr>
			<td>站点</td>
			<td><?php echo $collection->getWebsiteId() ?></td>
		</tr>
		<tr>
			<td>内容</td>
			<td><?php echo $collection->getContent() ?></td>
		</tr>
	</table>
</div>